package com.ayh.campusfun.vo;

import cn.hutool.core.bean.BeanUtil;
import com.ayh.campusfun.entity.TopicShare;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ayh
 * @create 2021/3/31 9:53
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class  TopicVO extends TopicShare {
    private Boolean isClick;
    private Boolean isAttention;
    public static TopicVO build(TopicShare  topicShare,Boolean isClick,Boolean isAttention){
        TopicVO topicVO = new TopicVO();
        BeanUtil.copyProperties(topicShare,topicVO);
        topicVO.setIsClick(isClick);
        topicVO.setIsAttention(isAttention);
        return topicVO;
    }
}
